package md.mru.core.dtos;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class OrderTypeDto implements BaseDto, Serializable {

    private static final long serialVersionUID = -8430678983401703170L;

    private long id;
    private String name;
    private String icon;
    private Long changeToOrderTypeId;
    private String notification;
    private int showBeforeDays;
    private String repeatNotification;
    //private String orderTemplate;
    private OrderTypeGroupDto orderTypeGroup;
    private FolderStateDto folderState;
    List<OrderPatternDto> orderPatterns;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Long getChangeToOrderTypeId() {
        return changeToOrderTypeId;
    }

    public void setChangeToOrderTypeId(Long changeToOrderTypeId) {
        this.changeToOrderTypeId = changeToOrderTypeId;
    }

    public String getNotification() {
        return notification;
    }

    public void setNotification(String notification) {
        this.notification = notification;
    }

    public int getShowBeforeDays() {
        return showBeforeDays;
    }

    public void setShowBeforeDays(int showBeforeDays) {
        this.showBeforeDays = showBeforeDays;
    }

    public String getRepeatNotification() {
        return repeatNotification;
    }

    public void setRepeatNotification(String repeatNotification) {
        this.repeatNotification = repeatNotification;
    }

    public OrderTypeGroupDto getOrderTypeGroup() {
        return orderTypeGroup;
    }

    public void setOrderTypeGroup(OrderTypeGroupDto orderTypeGroup) {
        this.orderTypeGroup = orderTypeGroup;
    }

    public FolderStateDto getFolderState() {
        return folderState;
    }

    public void setFolderState(FolderStateDto folderState) {
        this.folderState = folderState;
    }

    public List<OrderPatternDto> getOrderPatterns() {
        if (orderPatterns == null) {
            orderPatterns = new ArrayList<>();
        }
        return orderPatterns;
    }

    public void setOrderPatterns(List<OrderPatternDto> orderPatterns) {
        this.orderPatterns = orderPatterns;
    }

}